package sessions;

import java.util.List;

import javax.ejb.Local;

import entities.FriendshipRequest;
import entities.User;
import exceptions.FriendshipRequestException;

@Local
public interface FriendshipManagerLocal {

	public void request(User fromUser, User toUser, String message)
			throws FriendshipRequestException;

	public List<FriendshipRequest> fetchIncoming(String username);

	public List<FriendshipRequest> fetchOutgoing(String username);

	public FriendshipRequest fetch(int id);

	public void accept(FriendshipRequest fr);

	public void refuse(FriendshipRequest fr);

	public List<User> fetchFriends(String username);

}
